<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * 分类模型
 */
class Category extends Model
{
    use SoftDeletes;
    protected $table = 'categories';

    protected $primaryKey = 'id';

    protected $fillable = [
                            'name',
                            'sort',
                            'slug',
                        ];
    protected $hidden =[
        'deleted_at','updated_at','created_at'
    ];

}
